all: main.o monitor.o setter.o args.o log.o netlink.o
	gcc -o kratos main.o monitor.o setter.o log.o args.o netlink.o -lnl-3 -lnl-genl-3

main.o: main.c
	gcc -c main.c -I/usr/include/libnl3

monitor.o: monitor.c
	gcc -c monitor.c -I/usr/include/libnl3

setter.o: setter.c
	gcc -c setter.c -I/usr/include/libnl3

log.o: log.c
	gcc -c log.c

args.o: args.c
	gcc -c args.c

netlink.o: netlink.c
	gcc -c netlink.c -I/usr/include/libnl3

clean:
	rm *.o
